package study.spring.core.listener;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("study.spring.core.listener")
public class MockSpringPublishEvent {

  public static void main(String[] args) {
    ApplicationContext context = new AnnotationConfigApplicationContext(MockSpringPublishEvent.class);
    context.publishEvent(new CustomEvent(context));
  }

}
